package com.shtel.paas.monitorcenter.view.dispaly.oracle.monitor.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageHelper;
import com.shtel.paas.monitorcenter.util.Page;
import com.shtel.paas.monitorcenter.view.dispaly.oracle.monitor.entity.OracleMonitorDto;
import com.shtel.paas.monitorcenter.view.dispaly.oracle.monitor.mapper.OracleMonitorMapper;
import com.shtel.paas.monitorcenter.view.dispaly.oracle.monitor.service.OracleMonitorService;

/**  
* @Description: oracle监控接口实现类
* @author zhangyy  
* @date 2018年6月5日  
*/
@Service
public class OracleMonitorDtoServiceImpl implements OracleMonitorService{
	
	@Autowired
	OracleMonitorMapper oracleMonitorMapper;
	/*
	 * //oracle监控分页查询
	 */
	@Override
	public Page<OracleMonitorDto> selectOracleMonitorInfo(OracleMonitorDto parameter) {
		// TODO Auto-generated method stub
		
		PageHelper.startPage(parameter.getPage(), parameter.getSize());
		List<OracleMonitorDto> resultInfo = oracleMonitorMapper.selectOracleMonitorInfo(parameter);
		Page<OracleMonitorDto> result = Page.build(resultInfo);
		return result;
	}

}
